package com.example.bookstore.service;

import com.example.bookstore.pojo.Book;
import com.example.bookstore.pojo.Page;

import java.sql.SQLException;
import java.util.List;

public interface BookService {
    public void addBook(Book book) throws SQLException;
    public void deleteBookById(Integer id) throws SQLException;
    public void updateBook(Book book) throws SQLException;

    public Book queryBookById(Integer id) throws SQLException;

    public List<Book> queryBooks() throws SQLException;

    Page<Book> page(int pageNo, int pageSize) throws SQLException;
}
